package com.anan.ehcache.entity;

import java.io.Serializable;

/**
 * @code @Author:Painter
 * @code @project_name:ehcache
 * @code @class_name:CaheEntity
 * @code @system_login_name:23287
 * @code @time: 2023/5/30  14:52
 */


public class CacheEntity implements Serializable {

    private String key;

    private Object data;

    public CacheEntity() {
    }

    public CacheEntity(String key) {
        this.key = key;
    }

    public CacheEntity(String key, Object data) {
        this.key = key;
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    @Override
    public String toString() {
        return "CacheEntity{" +
                "key='" + key + '\'' +
                ", data=" + data +
                '}';
    }
}
